Random signal generator

ABSTRACT

A random signal generator uses a folded MOS transistor, whose drain-source current includes a random component, as an electronic noise source. The random signal generator generates a random binary signal from the random component. The invention may be applied, in particular, to smart cards.

FIELD OF THE INVENTION

The present invention relates to random signal generators, and more particularly, though not exclusively, to a random binary signal generator for smart cards.

BACKGROUND OF THE INVENTION

A random binary signal generator allows a smart card, for example, during a terminal authentication procedure, to send a random binary sequence comprising 16 or 32 bits, for example. The card and terminal apply a secret key authentication function to the sequence. Thereafter, the terminal transmits the obtained result to the card, and the card compares its computed result with the one received from the terminal. If both results match, the terminal is presumed to be authentic and the card accepts the requested transaction.

Random generators are known in the art, and are implemented as state machines having a finite number of internal states. Such state machines comprise, for example, shift registers of which certain bits are fed-back through an XOR gate as an input to the machine. Starting from an initial internal state, the state machine is enabled by a clock signal, and a random bit is extracted from the state machine at each clock pulse.

A drawback of such state machines, however, is that they generate deterministic binary sequences that are highly repetitive, as well as an output statistical bias influencing the distribution of logic ones and logic zeros. To overcome this drawback, there is a need for state machines having a large number of internal states (ideally, the machine would have an infinite number of internal states), but this approach opposes the greater simplicity, lower cost and lower consumption desired for random signal generators.

A random signal generator can also be implemented by an electronic noise generator, such as the noise generated by an avalanche-connected diode or a biased diode, or also the thermal noise in a resistor. However, these noise sources are of very small amplitude. It is necessary to use a high gain amplifier with at least a 60 dB gain. This implies using power-consuming bipolar transistors. However, the presence of such transistors is undesired in many integrated circuits, in particular, integrated circuits used in smart cards.

SUMMARY OF THE INVENTION

In view of the foregoing background, an object of the present invention is therefore to provide a random signal generator that does not have the drawbacks of known generators.

This and other objects, advantages and features in accordance with the present invention are based on the observation that folded MOS transistors, such as having a zigzag-shaped channel, are known to be unusable when the technology employed is pushed to its limits. Folded MOS transistors are unusable in these situations because the drain-source current has an increasingly strong random component when the size of the zigzag-shaped channel decreases. A concept of the present invention is to take advantage of this drawback to provide a random signal generator that can be integrated within an integrated circuit, particularly, an integrated circuit for smart cards.

Thus, the present invention includes a random signal generator using an electronic noise source. The electronic noise source may comprise a folded MOS transistor whose drain-source current has a random component. The random signal generator also comprises means or a circuit for generating a random binary or digital signal from the random component.

According to one embodiment, the folded MOS transistor comprises an S-shaped or zigzag-shaped channel, in which the sizes are at the resolution limit allowed by the transistor manufacturing technology. According to another embodiment, the generator further comprises a reference transistor. The reference transistor receives a gate voltage and a bias current that are the same as those applied to the folded transistor for extracting the random component.

According to yet another embodiment, the generator comprises means or a circuit for comparing the random component to a detection current. The generator may comprise means or a circuit for amplifying the random component, and the generator may comprise means for sampling the random binary signal to obtain a random digital signal.

According to another embodiment, the generator comprises a logic circuit for generating random binary numbers from the random digital signal. The generator may automatically maintain the gate voltage of the folded transistor within a determined range of values that ensures delivery of an equally probable output signal.

According to another embodiment, the generator comprises a plurality of electronic noise sources generating a current that includes a random component. Each source is coupled to means or a circuit for generating a random binary signal from the random component generated by the source, respectively. The generator additionally may comprise means for combining the random binary signals from the sources to generate random binary signals.

The present invention also relates to an integrated circuit comprising a random binary signal generator according to the invention, and means or a circuit for connecting the generator output to other components in the integrated circuit. According to one embodiment, the integrated circuit is arranged on a support for forming a smart card or any other equivalent portable electronic item.

According to another embodiment, the integrated circuit comprises a processor unit including means or a circuit for receiving a random number generated by the generator, means or a circuit for transmitting the random number to an external terminal, means or a circuit for subjecting the random number to a secret key authentication function. The integrated circuit may further comprise means or a circuit for comparing the result of the function to a result provided by the terminal in response to the transmission of the random number, and means or a circuit for allowing a transaction with the terminal if the result provided by the terminal matches the result computed by the processor unit.

The present invention also relates to a method for generating a random number using an electronic noise source. The method comprises providing a folded transistor having an S-shaped or zigzag-shaped channel with sizes chosen to be at the resolution limit allowed by the transistor manufacturing technology, and extracting a random current component at the terminals of the folded MOS transistor. The method further comprises generating a binary or digital signal as a function of the random component, and sampling the binary signal.

According to one embodiment, the method further comprises amplifying the random component and subtracting therefrom a reference value before converting the random component into a binary signal. The method may also comprise the step of adjusting the gate voltage of the folded transistor as a function of the random binary signal obtained in the sampling step. The method may further comprise generating binary numbers from the binary signal.

BRIEF DESCRIPTION OF THE DRAWINGS

These and other objects, features and advantages of the invention will become clear from the following description of a generator according to the invention given by way of a non-limiting example, with reference to the enclosed drawings, in which:

FIG. 1 is a schematic circuit diagram of a random number generator according to the invention;

FIG. 2 is a detailed view of transistor M_(ref) within the generator shown in FIG. 1;

FIG. 3 a is a detailed view of transistor M_(c) used as the noise source in the generator shown in FIG. 1;

FIG. 3 b is a detailed view of the component shown in FIG. 3 a;

FIG. 4 is a plot of curves of the current variation in the reference component and the noise source component as a function of the voltage applied to the components according to the invention;

FIG. 5 is a plot of curves of the current variation at another location in the random generator as a function of the voltage applied to the reference and noise source components according to the invention;

FIG. 6 is a block diagram of an example application of a random signal generator according to the present invention; and

FIG. 7 is a block diagram of a random generator comprising several generators according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 illustrates a binary random signal generator 1 according to the present invention. The generator comprises a transistor M_(c) serving as an electronic noise source, as well as a reference transistor M_(ref). According to the present invention, transistor M_(c) is a folded MOS-type transistor having a drain-source current that randomly varies within a predetermined range of values for a given gate voltage. Reference transistor M_(ref) includes characteristics similar to the characteristics of transistor M_(c), but without any random component.

The generator 1 comprises two transistors M1, M2 arranged as a current mirror, which bias both transistors M_(ref) and M_(c) by applying the same current I₁ to the drain of transistors M1, M2. The source of transistor M_(c) is grounded through a balancing resistor R formed by the drain-source resistance of transistor M_(c). Because the drain-source current in transistor M_(c) includes a random component, the drain current is I₁+_(Δ)I.

FIG. 4 shows the variation curves 31, 32 of drain-source currents I_(ref) and I_(c) in transistors M_(ref) and M_(c), as a function of gate voltage V_(G), respectively. The random component _(Δ)I (width of hatched area 32) increases with increasing voltage V_(G).

The generator 1 further comprises two transistors M3, M4, also arranged as a current mirror, with the source and gate of transistor M3 connected to the drain of transistor M_(c). In this manner, transistor M3 measures the current difference _(Δ)I=I_(c)-I_(ref) between the drain currents of transistors M_(c) and M_(ref). The current I₂, at the source of transistor M4, corresponds to the current _(Δ)I multiplied by a gain _(α), namely I₂=_(α)* _(Δ)I. Transistor M4 is oversized relative to transistor M3, so that the amplification ratio or gain a has _(α)value greater than 1, such as 2, for example.

FIG. 5 shows how the current I₂ varies as a function of the gate voltage V_(G). Since the current I_(c) has a random component, the current I₂ also has a random component represented by the hatched area 35. The source of transistor M4 is connected to a current source S_(S) that provides a reference detection current I_(S) (shown in FIG. 5), so as to obtain at the source of transistor M4 a current equal to I₂-I₅. This differential current is input to an inverter gate 2, wherein the output delivers a 0 logic signal when I₂ is greater than I₅, and delivers a 1 logic signal otherwise.

The logic signal is sampled by a D flip-flop 4 having a D input connected to the output of the inverter gate 2, and having a Q output delivering the random binary signal. The clock input CK of flip-flop 4 is driven by a clock signal Clk having a predetermined frequency. The clock signal Clk is output by an oscillator 3 that may be internal or external to the generator 1.

For the current I₂ to oscillate randomly about the current I_(s), the signal at the Q output of the flip-flop 4 is fed-back to the gate of transistors M_(ref) and M_(c) through an integrating circuit for automatically adjusting the gate voltage V_(G). The gate voltage V_(G) thus ranges between values V_(G)min and V_(G)max, as shown in FIG. 5, which correspond to the width of hatched area 35.

Here, the integrating circuit comprises a PMOS transistor M5 and an NMOS transistor M6. The source of transistor M5 is connected to the drain of transistor M6 through two series-connected current sources S1, S2. The signal provided by output Q of the flip-flop 4 is applied to the gates of both transistors M5 and M6, and the junction node between the current sources S1, S2 is connected to the gates of transistors M_(c) and M_(ref). The gate of each transistor M_(c) and M_(ref) is also connected to ground through a capacitor C, which through steady current charging and discharging, adds to the relatively high gate capacitances of transistors M_(ref) and M_(c) for integrating the gate voltage V_(G).

Thus, when the signal at the output Q of flip-flop 4 is a 0, transistor M6 is off and transistor M5 is on. Current source S1 then applies a current to the connection node between the gates of transistors M_(ref), M_(c) and capacitor C. Conversely, if the logic level of the signal applied to the integrating circuit is a 1, transistor M5 is turned off and transistor M6 is on. The current source S2 then applies a current to the connection node between the gates of transistors M_(ref), M_(c) and capacitor C. Thus, the integrator device continuously tracks current changes within transistor M_(c) so that the gate voltage V_(G) is kept in the range VGmin to V_(G)max, and bits set to a 1 and a 0 at the generator output have equal probabilities.

FIGS. 2 and 3 a-3 b show transistors M_(ref) and M_(c) in more detail. In FIG. 2, MOS transistor M_(ref) conventionally comprises a plurality of straight and parallel channels. These channels are formed by implanting a dopant into a semiconductor substrate. All of the channels are covered by a gate 11 made of a thin electrically insulating layer, such as, polysilicon (polycrystalline silicon), for example.

The polysilicon layer is coated with a metal contact providing the gate connection. The ends of each channel 14 are provided with contact pads 13, 19 and are series connected by metal contacts 17 shown in broken lines. Two contact pads 13, 19 at the ends of the chain-pattern thus obtained are provided with metal contacts 12, 18, respectively forming the drain and source connectors of the transistor. In other words, transistor M_(ref) is formed by a plurality of series-connected transistors having a common gate.

In FIG. 3 a, transistor M_(c) comprises a channel 24 also formed by implanting a dopant into a semiconductor substrate. The channel is S-shaped or zigzag-shaped, with several portions that are parallel to each other connected through bent portions, substantially the same width as the parallel portions.

Channel 24 as a whole is overlaid with a gate 21 composed of a thin electrically insulating layer, for example, polycrystalline silicon. The insulating layer is overlaid with a metal contact serving as the gate connection. Both ends of the channel include contacts 23, 29 connected to respective metal contacts 22, 28 providing the drain and the source of the transistor, respectively.

The drain-source current includes a random component when the channel dimensions are chosen to be close to the minimun resolution allowed by the manufacturing technology in use. The dimensions may even be slightly less than this minimum because defects may otherwise appear when developing the channel implantation mask. Therefore, as shown in the enlarged view in FIG. 3 b, when the channel 24 includes dimensions and a folding step that are close to the limits allowed by the technology in use, or even slightly smaller than these limits, the folded portions obtained include a rounded shape 24′ inside the fold. For example, with a 0.35 mm integration technology, the width of parallel 25, 26 and folded portions of the gate is less than 1 mm, and preferably approximately 0.7 mm, whereas the distance between parallel portions is on the order of 1.5 mm.

The random component _(Δ)I of the drain-source current increases as the number of bends in such a transistor increases. On the other hand, if the number of bends increases too much, the drain-source current decreases and has to be amplified with a large gain. Consequently, there is an optimum number of folds, which depends on the integration scale of the component. For example, there were 10 folds in the embodiment tested by the inventors.

The generator 1 may be coupled to a logic circuit 5 as shown in FIG. 1. This is for generating from the bit strings at the output of the flip-flop 4 random numbers having a predetermined bit length (such as 8, 16, 32 bits, etc.). The logic circuit 5 may be a simple series/parallel converter or may include a combiner for combining the bits of the input series signal in a more complex way. The combiner may be designed, for example, to correct possible statistical errors and enhance the randomness of the output generated numbers.

Alternatively, as shown in FIG. 7, a plurality of generators 1 a, 1 b, . . . 1 n according to the invention may be connected in parallel. Each generator is fed with a clock signal Clk delivered by a common oscillator 3′. Such a generator assembly delivers, at each cycle of clock Clk, a random number whose length n corresponds to the number of parallel-connected generators. The respective outputs of the generators can be combined in a simple or complex way within a logic circuit 5′.

The generator illustrated in FIG. 1 or 7 perfectly lends itself to integration within a chip, such as those used in smart cards, of which an example is schematically shown in FIG. 6. The illustrated chip 41 comprises, in a conventional manner, a processor unit 42 such as a microprocessor or microcontroller, a memory 44 of the ROM, RAM and/or EEPROM type, and a communications module 47 for communicating with an external terminal 51. These various units are interconnected through an internal bus 43. The chip 41 also comprises a random generator 45 according to the invention, which includes the above-described generator 1.

The communications module 47, which is of the contact-type or contactless-type, is designed to cooperate with the corresponding communications module 57 provided in terminal 51. The terminal 51 comprises a processor unit 52, a memory 54 and an internal bus 53 allowing the processor unit to communicate with the memory and communications module 57.

The random generator 45 is used in an authentication procedure of terminal 51 as performed by the chip 41 for authorizing a transaction. For this purpose, the processor unit 42 uses generator 45 for generating a random number A, which is transmitted to terminal 51. In parallel, processor unit 42 computes a result R=F_(KS)(A) obtained by transforming the random number A according to an authentication function FKS that uses a secret key KS. Terminal 51, which knows the secret key KS, performs the same computation and transmits the transformation result R′ to chip 41. If the chip finds that both results R and R′ match, it proceeds to the transaction requested by the terminal 51.

Preferably, terminal 51 also comprises a random generator 55, according to the present invention, for authenticating the chip 41. In this case, the terminal 51 executes a procedure similar to the one described above by sending a random number to the chip 41, and compares the computed result with the result that has been computed and transmitted by the chip.

Those skilled in the art will recognize that the random generator according to the present invention can be subject to many embodiments, modifications and applications within the scope to the above teaching. 

1. A random signal generator comprising; an electronic noise source comprising a folded MOS transistor having a drain-source current with a random component; said folded MOS transistor comprising a drain and a source with a folded channel defined therebetween; and a circuit for generating a digital signal based upon the random component.
 2. A random signal generator according to claim 1, wherein the folded channel is S-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 3. A random signal generator according to claim 1, wherein the folded channel is zigzag-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 4. A random signal generator according to claim 1, further comprising a reference transistor connected to said folded MOS transistor, said reference transistor receiving a gate voltage and a bias current equal to a gate voltage and a bias current applied to said folded MOS transistor for causing the drain-source current therefrom to randomly vary.
 5. A random signal generator according to claim 1, further comprising a comparison circuit for comparing the randomly varying drain-source current to a detection current.
 6. A random signal generator according to claim 5, wherein said comparison circuit determines a difference between the randomly varying drain-source current and the detection current; and further comprising an amplifier for amplifying the difference.
 7. A random signal generator according to claim 1, wherein said circuit comprises a sampling circuit for sampling the digital signal for providing a random digital word.
 8. A random signal generator according to claim 1, further comprising an integrating circuit for maintaining a gate voltage on said folded MOS transistor within a desired range of values.
 9. A random signal generator circuit comprising: a plurality of random signal generators, each random signal generator comprising an electronic noise source comprising a folded MOS transistor having a drain-source current with a random component, said folded MOS transistor comprising a drain and a source with a folded channel defined therebetween, and a circuit for generating a digital signal based upon the random component; and a logic circuit connected to said plurality of random signal generators for combining the digital signals for generating a digital number.
 10. A random signal generator circuit according to claim 9, wherein the folded channel is S-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 11. A random signal generator circuit according to claim 9, wherein the folded channel is zigzag-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 12. A random signal generator circuit according to claim 9, wherein each random signal generator further comprises a reference transistor connected to said folded MOS transistor, said reference transistor receiving a gate voltage and a bias current equal to a gate voltage and a bias current applied to said folded MOS transistor for causing the drain-source current therefrom to randomly vary.
 13. A random signal generator circuit according to claim 9, wherein each random signal generator further comprises a comparison circuit for comparing the randomly varying drain-source current to a detection current.
 14. A random signal generator circuit according to claim 13, wherein each comparison circuit determines a difference between the randomly varying drain-source current and the detection current; and wherein each random signal generator further comprises an amplifier for amplifying the difference.
 15. A random signal generator circuit according to claim 9, wherein each circuit comprises a sampling circuit for sampling the digital signal for providing a random digital words and wherein said logic circuit generates the digital number based upon the random digital word.
 16. A random signal generator circuit according to claim 9, wherein each random signal generator further comprises an integrating circuit for maintaining a gate voltage on said folded MOS transistor within a desired range.
 17. A method for generating a random number from an electronic noise source, the method comprising: providing a folded MOS transistor having a drain-source current with a random component, the folded MOS transistor comprising a drain and a source with a folded channel defined therebetween; generating a random digital signal based upon the random component.
 18. A method according to claim 17, wherein the folded channel is S-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 19. A method according to claim 17, wherein the folded channel is zigzag-shaped and has a size that is at a resolution limit based upon manufacturing technology.
 20. A method according to claim 17, further comprising: providing a reference transistor connected to the folded MOS transistor; and providing a gate voltage and a bias current to the reference transistor, the gate voltage and the bias current being equal to a gate voltage and a bias current applied to the folded MOS transistor for causing the drain-source current therefrom to randomly vary.
 21. A method according to claim 17, further comprising comparing the randomly varying drain-source current to a detection current.
 22. A method according to claim 21, wherein the comparing comprises determining a difference between the randomly varying drain-source current and the detection current and further comprising amplifying the difference.
 23. A method according to claim 17, wherein the sampling comprises providing a random digital signal based upon the sampled random binary signal, and further comprising generating the random number based upon the random digital signal.
 24. A method according to claim 17, further comprising maintaining a gate voltage on the folded MOS transistor within a desired range of values. 